<?php
require('../../cofd/common.php');
$sql = "SELECT * FROM exam_cdk";
$result = mysqli_query($conn, $sql);
$data = [];

if (mysqli_num_rows($result) > 0) {
    while($row = mysqli_fetch_assoc($result)) {
        $data[] = $row;
    }
} else {
    
}
mysqli_close($conn);
$response = [
    "code" => 0,
    "msg" => "",
    "count" => 1,
    "data" => $data
];
header('Content-Type: application/json');
echo json_encode($response, JSON_UNESCAPED_UNICODE);
?>